/*
 * File: c_main.h
 *
 * Code generated for Simulink model 'c_main'.
 *
 * Model version                  : 1.15
 * Simulink Coder version         : 9.5 (R2021a) 14-Nov-2020
 * C/C++ source code generated on : Sat Sep  4 09:20:47 2021
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Intel->x86-64 (Windows64)
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef RTW_HEADER_c_main_h_
#define RTW_HEADER_c_main_h_
#include <math.h>
#ifndef c_main_COMMON_INCLUDES_
#define c_main_COMMON_INCLUDES_
#include "rtwtypes.h"
#include "rtw_continuous.h"
#include "rtw_solver.h"
#endif                                 /* c_main_COMMON_INCLUDES_ */

#include "c_main_types.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
#define rtmGetErrorStatus(rtm)         ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
#define rtmSetErrorStatus(rtm, val)    ((rtm)->errorStatus = (val))
#endif

#ifndef rtmGetT
#define rtmGetT(rtm)                   (rtmGetTPtr((rtm))[0])
#endif

#ifndef rtmGetTPtr
#define rtmGetTPtr(rtm)                ((rtm)->Timing.t)
#endif

/* Block signals (default storage) */
typedef struct {
  real_T data1;                        /* '<Root>/Chart' */
} B_c_main_T;

/* Block states (default storage) for system '<Root>' */
typedef struct {
  uint8_T is_active_c3_c_main;         /* '<Root>/Chart' */
  uint8_T is_c3_c_main;                /* '<Root>/Chart' */
  uint8_T is_D;                        /* '<Root>/Chart' */
} DW_c_main_T;

/* External outputs (root outports fed by signals with default storage) */
typedef struct {
  real_T data1;                        /* '<Root>/data1' */
} ExtY_c_main_T;

/* Real-time Model Data Structure */
struct tag_RTM_c_main_T {
  const char_T *errorStatus;
  RTWSolverInfo solverInfo;

  /*
   * Timing:
   * The following substructure contains information regarding
   * the timing information for the model.
   */
  struct {
    uint32_T clockTick0;
    time_T stepSize0;
    uint32_T clockTick1;
    SimTimeStep simTimeStep;
    time_T *t;
    time_T tArray[2];
  } Timing;
};

/* Block signals (default storage) */
extern B_c_main_T c_main_B;

/* Block states (default storage) */
extern DW_c_main_T c_main_DW;

/* External outputs (root outports fed by signals with default storage) */
extern ExtY_c_main_T c_main_Y;

/* Model entry point functions */
extern void c_main_initialize(void);
extern void c_main_step(void);
extern void c_main_terminate(void);

/* Real-time Model object */
extern RT_MODEL_c_main_T *const c_main_M;

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'c_main'
 * '<S1>'   : 'c_main/Chart'
 */
#endif                                 /* RTW_HEADER_c_main_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
